<form id="sniperForm" name="sniperForm" action="" method="post" class="form-horizontal" role="form">

    <div class="form-group">

        <div class="form-group">
            <label for="sort" class="col-sm-2 control-label">运行时间表达式</label>
            <div class="col-sm-8">
                <input type="text" name="cron" value="${search.cron!'0 0 1 * * ?'}" class="form-control" placeholder=""/>
                <div class="help-block">默认每天凌晨备份</div>
            </div>
        </div>

        <div class="col-sm-10 col-md-offset-2">
            <button type="submit" name="submit" value="<#if job??>
				<#switch job.jobStatus>
				<#case "None">
				Start
				<#break>
				<#case "NORMAL">
				Pause
				<#break>
				<#case "PAUSED">
				Continue
				<#break>
				<#case "COMPLETE">
				Stop
				<#break>
				<#case "BLOCKED">
				Blocking
				<#break>
				<#case "ERROR">
				ERROR
				<#break>
				<#default>
				Start
				</#switch>
			<#else>
			Start
			</#if>" class="btn btn-success">
            <#if job??>
                <#switch job.jobStatus>
                    <#case "None">
                        Start
                        <#break>
                    <#case "NORMAL">
                        Pause
                        <#break>
                    <#case "PAUSED">
                        Continue
                        <#break>
                    <#case "COMPLETE">
                        Stop
                        <#break>
                    <#case "BLOCKED">
                        Blocking
                        <#break>
                    <#case "ERROR">
                        ERROR
                        <#break>
                    <#default>
                        Start
                </#switch>
            <#else>
                Start
            </#if>
            </button>
        <#if job??>
            <#if job.jobStatus=="NORMAL" || job.jobStatus=="PAUSED">
                <button type="submit" name="submit" value="Stop" class="btn btn-success">Stop</button>
            </#if>
        </#if>
            <button type="submit" name="submit" value="RunOnce" class="btn btn-success">RunOnce</button>
        </div>
    </div>
</form>

<div class="alert alert-success" role="alert">
    <p></p>
</div>
